package dec;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-05-08
 * Time: 19:26
 */

public abstract class Drink {


    public String des; //描述
    private float price = 0.0f; //价格

    //要一个计算费用的抽象方法
    //子类来实现 因为不同的组合 价格不同
    public abstract float cost();

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

}
